package com.njym.java.security.app.entity;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;


/**
 * 用户钱包记录 包括金币与积分
 * 
 * @author lijie
 * @email 717057076@qq.com
 * @date 2019-12-18 14:30:47
 */
@Table(name = "family_wallet_record")
public class FamilyWalletRecord implements Serializable {
	private static final long serialVersionUID = 1L;
	
	    //
    @Id
    private Integer id;
	
	    //用户id
    @Column(name = "user_id")
    private Integer userId;
	
	    //返还人id
    @Column(name = "mechaism_id")
    private Integer mechaismId;
	
	    //类型  1返金币  2 返积分
    @Column(name = "type")
    private Integer type;
	
	    //记录单号
    @Column(name = "record_sn")
    private String recordSn;
	
	    //时间
    @Column(name = "modify_time")
    private Date modifyTime;

	@Column(name = "detail")
    private Integer detail;

	@Column(name = "course_section_id")
	private Integer courseSectionId;

	@Column(name = "course_id")
	private Integer courseId;

	@Column(name = "left_points")
	private Integer leftPoints;

	@Column(name = "actual_payment")
	private Double actualPayment;

	@Column(name = "pay_type")
	private Integer payType;
	@Column(name = "pay_id")
	private String payId;
	@Column(name = "pay_time")
	private Date payTime;

	@Column(name = "class_id")
	private Integer classId;

	public Integer getClassId() {
		return classId;
	}

	public void setClassId(Integer classId) {
		this.classId = classId;
	}

	public Double getActualPayment() {
		return actualPayment;
	}

	public Integer getPayType() {
		return payType;
	}

	public String getPayId() {
		return payId;
	}

	public Date getPayTime() {
		return payTime;
	}

	public void setActualPayment(Double actualPayment) {
		this.actualPayment = actualPayment;
	}

	public void setPayType(Integer payType) {
		this.payType = payType;
	}

	public void setPayId(String payId) {
		this.payId = payId;
	}

	public void setPayTime(Date payTime) {
		this.payTime = payTime;
	}

	/**
	 * 设置：
	 */
	public void setId(Integer id) {
		this.id = id;
	}
	/**
	 * 获取：
	 */
	public Integer getId() {
		return id;
	}
	/**
	 * 设置：用户id
	 */
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	/**
	 * 获取：用户id
	 */
	public Integer getUserId() {
		return userId;
	}
	/**
	 * 设置：返还人id
	 */
	public void setMechaismId(Integer mechaismId) {
		this.mechaismId = mechaismId;
	}
	/**
	 * 获取：返还人id
	 */
	public Integer getMechaismId() {
		return mechaismId;
	}
	/**
	 * 设置：类型  1返金币  2 返积分
	 */
	public void setType(Integer type) {
		this.type = type;
	}
	/**
	 * 获取：类型  1返金币  2 返积分
	 */
	public Integer getType() {
		return type;
	}
	/**
	 * 设置：记录单号
	 */
	public void setRecordSn(String recordSn) {
		this.recordSn = recordSn;
	}
	/**
	 * 获取：记录单号
	 */
	public String getRecordSn() {
		return recordSn;
	}
	/**
	 * 设置：时间
	 */
	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}
	/**
	 * 获取：时间
	 */
	public Date getModifyTime() {
		return modifyTime;
	}

	public Integer getDetail() {
		return detail;
	}

	public void setDetail(Integer detail) {
		this.detail = detail;
	}

	public Integer getCourseSectionId() {
		return courseSectionId;
	}

	public void setCourseSectionId(Integer courseSectionId) {
		this.courseSectionId = courseSectionId;
	}

	public Integer getCourseId() {
		return courseId;
	}

	public void setCourseId(Integer courseId) {
		this.courseId = courseId;
	}

	public Integer getLeftPoints() {
		return leftPoints;
	}

	public void setLeftPoints(Integer leftPoints) {
		this.leftPoints = leftPoints;
	}
}
